package com.droolsdemo.service;

import com.droolsdemo.rule.NewKieBase;
import com.droolsdemo.rule.RuleExecute;
import org.kie.api.KieBase;
import org.springframework.stereotype.Service;

@Service
public class DroolsService {
    public KieBase newKieBase()
    {
        String rule = RuleExecute.activityRule();
        KieBase kieBase = NewKieBase.ruleKieBase(rule);
        return kieBase;
    }

}
